<?php
namespace Talentpool\Controller;

use Think\Controller;
header("content-type:text/html;charset=utf-8");

class EmploymentSearchController extends Controller
{

    public function Index()
    {
        if (strlen(session("hrTel")) > 0) {
            $this->success("你已登陆，正在跳转", U("Index"));
        } else {
            $this->display();
        }
    }

    public function CheckLogin()
    {
        $hrreserve = M("hrreserve");
        $hrTel = $_POST["hrTel"];
        $hrPwd = md5($_POST["hrPwd"]);
        $rs_hrreserve = $hrreserve->where("hrTel='{$hrTel}'")
            ->field("hrId,hrState,hrTel,hrPwd")
            ->find();
        if (count($rs_hrreserve) > 0) {}
    }
}
